package net.ermannofranco.genericdaojdbc.model;

import java.io.Serializable;

/**
 * Superclasse del model. Bello programmare in Jdbc pensando a JPA...
 * 
 * @author ermanno (ermanno.franco@gmail.com)
 * 
 * @param <K>
 */
public abstract class Entity<K extends Number> implements Serializable {

	private static final long serialVersionUID = -2936088972034479603L;
	public static final String ID_PROP_NAME = "id";

	private K id;

	public Entity() {
	}

	public final K getId() {
		return id;
	}

	public final void setId(K id) {
		this.id = id;
	}
}
